package com.jianneng.jdg.model.homeactivity;

import com.example.com.jianneng.jdg.R;
import com.example.com.jianneng.jdg.R.id;
import com.example.com.jianneng.jdg.R.layout;
import com.example.com.jianneng.jdg.R.menu;
import com.jianneng.jdg.model.adapter.ConsultAdapter;
import com.jianneng.jdg.model.gallery.ConsultService;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.ListView;

public class MyConsultActivity extends BaseActivity {
private ListView mConsultListView;
private ConsultAdapter mAdapter;
private LinearLayout mBack;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_my_consult);
		init();
		mAdapter = new ConsultAdapter(this, ConsultService.getConsult());
		mConsultListView.setAdapter(mAdapter);
		mBack.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});
	}
	private void init() {
		mConsultListView = (ListView) findViewById(R.id.consult_listview);
		mBack = (LinearLayout) findViewById(R.id.consult_back);
	}
	
}
